package com.smit.demo.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 创建时间：2015-2-7 上午11:49:00
 *
 * @author andy
 * @version 2.2
 *          描述： 用户Controller
 */
@Controller
@RequestMapping("/user")
public class UserController {

    private static final Logger LOGGER = Logger.getLogger(UserController.class);


    @RequestMapping("/work")
    public String work() {
        return "/user/work";
    }

    @RequestMapping("/users")
    @ResponseBody
    public String engineer() {
        return "张磊\n黄贤峰\n李瑞佳";
    }
}
